/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modelo.facade;

import java.util.ArrayList;
import modelo.DAO.PujaDAO;
import modelo.DAO.UsuarioDAO;
import modelo.vo.Puja;
import modelo.vo.Usuario;

/**
 *
 * @author carlos
 */
public class PujaServicios 
{
    private PujaDAO PujaDAO;

    public PujaServicios(Puja puja) {
        this.PujaDAO = new PujaDAO(puja);
    }

    public Puja getUsuarioDao() {
        return PujaDAO.getPuja();
    }
    
    public void grabar()
    {
        PujaDAO.insertar();
    }
    
    public  ArrayList getLista()
    {
        return PujaDAO.lista();
    }
    
    public void editar()
    {
        PujaDAO.editar();
    }
    
    public void eliminar()
    {
        PujaDAO.eliminar();
    }
}
